package world;


import packets.SPacket;
import packets.s2cpackets.S0x03;

import entities.Player;

public final class ChatManager extends WorldStateMonitor {

	public ChatManager(WorldState state) {
		super(state);
	}

	
	public void newMessage(String message) {
		SPacket p = new S0x03(message);
		getWorldState().connectionManager().sendPacketToAll(p);
	}
	
	
	public void newMessage(Player player, String message) {
		SPacket p = new S0x03(player, message);
		getWorldState().connectionManager().sendPacketToAll(p);
	}
	
}
